package com.kgc.entity;

public class Danyuan {
    private Integer id;

    private String name;

    private Integer buildingId;

    private String buildingName;

    public String getBuildingName() {
        return buildingName;
    }

    public void setBuildingName(String buildingName) {
        this.buildingName = buildingName;
    }

    public Danyuan() {
    }

    @Override
    public String toString() {
        return "Danyuan{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", buildingId=" + buildingId +
                ", buildingName='" + buildingName + '\'' +
                '}';
    }

    public Danyuan(Integer id, String name, Integer buildingId) {
        this.id = id;
        this.name = name;
        this.buildingId = buildingId;
    }

    public Danyuan(String name, Integer buildingId) {
        this.name = name;
        this.buildingId = buildingId;
    }

    public Danyuan(Integer id, String name, Integer buildingId, String buildingName) {
        this.id = id;
        this.name = name;
        this.buildingId = buildingId;
        this.buildingName = buildingName;
    }

    public Danyuan(String name, Integer buildingId, String buildingName) {
        this.name = name;
        this.buildingId = buildingId;
        this.buildingName = buildingName;
    }

    public Danyuan(Integer id, String name, String buildingName) {
        this.id = id;
        this.name = name;
        this.buildingName = buildingName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Integer getBuildingId() {
        return buildingId;
    }

    public void setBuildingId(Integer buildingId) {
        this.buildingId = buildingId;
    }
}